/*
 * Academic License - for use in teaching, academic research, and meeting
 * course requirements at degree granting institutions only.  Not for
 * government, commercial, or other organizational use.
 * File: mldivide.c
 *
 * MATLAB Coder version            : 3.4
 * C/C++ source code generated on  : 31-Oct-2022 18:36:01
 */

/* Include Files */
#include "rt_nonfinite.h"
#include "autobase.h"
#include "mldivide.h"

/* Function Definitions */

/*
 * Arguments    : const float A[4]
 *                const float B[2]
 *                float Y[2]
 * Return Type  : void
 */
void mldivide(const float A[4], const float B[2], float Y[2])
{
  float a21;
  a21 = A[1] / A[0];
  Y[1] = (B[1] - B[0] * a21) / (A[3] - a21 * A[2]);
  Y[0] = (B[0] - Y[1] * A[2]) / A[0];
}

/*
 * File trailer for mldivide.c
 *
 * [EOF]
 */
